package strategy.aimpl.old;

public class Client {

    public static void main(String[] args) {
        Client clientA = new Client();

        System.out.println(clientA.calc("teacher",2));
    }

    private double calc(String type, double pow) {
        if ("student".equals(type)) {
            return Math.pow(2,pow);
        } else if ("teacher".equals(type)) {
            return Math.pow(4,pow);
        }
        return 0;
    }
}
